home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8729 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  870 b 

  1. Path: news1.radix.net!news
  2. From: jfw@radix.net (Jim Ward)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Speed of random generators
  5. Date: 6 Mar 1996 02:59:54 GMT
  6. Organization: RadixNet Internet Services
  7. Distribution: world
  8. Message-ID: <4hiv3a$bc7@news1.radix.net>
  9. References: <TAKAHASI.96Mar1113825@poisson.ece.cmu.edu>
  10. NNTP-Posting-Host: dialin28.annex3.radix.net
  11. Mime-Version: 1.0
  12. Content-Type: Text/Plain; charset=US-ASCII
  13. X-Newsreader: WinVN 0.99.7
  14.  
  15. >I'm working in a simulation that requires intensive use of pseudo-random
  16. >sequences. My problem is that profiling the program I found out that the
  17. >generation of the sequences is responsible for about 50% of the total 
  18. >execution time. Since each run can take about 4 hours, it would be good
  19. >if I could save some time. 
  20.  
  21. If you're got some memory to burn, you could pre-generate your random
  22. numbers and store them...
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.